package main

import (
	"fmt"
)

type A struct{
	Number int 
}

func (a A)test(){
	fmt.Println(a.Number)
}

func (a A)china(x int){
	y:=x+a.Number 
	fmt.Println(y)
}

func (a A)calc(){

	res:=0
	for i:=0;i<1000;i++{
		res+=i 
	}
	fmt.Println("calc:",res)
}

func (a A)calcx(x int ,y int)(res int){

	res=x+y
	return 
	//return nil
}
func main(){


	var obj A 
	obj.Number=888
	//obj.test()

	//obj.china(100)
	//obj.calc()
	fmt.Println(obj.calcx(100,200))
}